﻿<Window x:Class="OmniKitsWindowsDemo.KeyGestureInputDemo"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
        xmlns:ok="http://omnikits.codeplex.com/"
        Title="KeyGestureInputDemo" Height="300" Width="300" Closing="Window_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBox Width="200" Grid.Row="1" x:Name="KeyGestureInput" ok:KeyGestureInput.AllowPureModifiers="True">
            <i:Interaction.Behaviors>
                <ok:KeyGestureInputBehavior/>
            </i:Interaction.Behaviors>
        </TextBox>
        <TextBox Width="200" Grid.Row="2" IsReadOnly="True" Text="{Binding (ok:KeyGestureInput.KeyGesture), ElementName=KeyGestureInput, Mode=OneWay}"/>
        <CheckBox x:Name="ForcedMods" HorizontalAlignment="Center" Grid.Row="3" Click="CheckBox_Click">Force Modifiers</CheckBox>
        <CheckBox x:Name="PureMods" HorizontalAlignment="Center" Grid.Row="4" IsChecked="{Binding (ok:KeyGestureInput.AllowPureModifiers), ElementName=KeyGestureInput}">Pure Modifiers</CheckBox>
    </Grid>
</Window>
